package sy.dao;

import java.io.Serializable;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import sy.model.Tuser;

@Repository("userDao")
public class UserDaoImpl implements UserDaoI {

	@Autowired
	private SessionFactory sessionFactory;
	
	@Override
	public Serializable save(Tuser t) {
		return this.sessionFactory.getCurrentSession().save(t);
	}

}
